<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title><?php echo C('TITLE');?></title>
	<meta name="keywords" content="<?php echo C('KEYWORD');?>" />
	<meta name="description" content="<?php echo C('DESCRIPTION');?>" />
	<link href="/Public/skin/css/css.css" rel="stylesheet" type="text/css" />
	<link href="/Public/skin/css/lrtk.css" rel="stylesheet" type="text/css" />
	<script src="/Public/skin/js/jquery-1.11.1.min.js" type="text/javascript"></script>
	<script src="/Public/skin/js/jquery-1.8.3.min.js"></script>
	<script type="text/javascript" src="/Public/skin/js/lrtk.js"></script>
</head>
<body>
    <!--nav 开始-->
	<div id="header">
    <a class="logo" href="/">
        <img src="/Public/skin/images/logo.jpg" />
    </a>
    <ul class="nav">
        <li>
            <a <?php if($nav_active == 'index'): ?>class="now"<?php endif; ?> href="/">首页</a>
        </li>
        <li>
            <a <?php if($nav_active == 'rank'): ?>class="now"<?php endif; ?> href="<?php echo U('rank/index');?>">赛事排名</a>
        </li>
        <li>
            <a <?php if($nav_active == 'join'): ?>class="now"<?php endif; ?> href="<?php echo U('join/index');?>">招商加盟</a>
        </li>
        <li>
            <a <?php if($nav_active == 'communicate'): ?>class="now"<?php endif; ?> href="<?php echo U('communicate/index');?>">交流吧</a>
        </li>
        <li>
            <a <?php if($nav_active == 'joinus'): ?>class="now"<?php endif; ?> href="<?php echo U('joinus/index');?>">加入我们</a>
        </li>
    </ul>
    <ul class="login">
        <?php if($_SESSION['user']['id'] == ''): ?><li class="l">
                <a href="<?php echo U('login/index');?>">
                    <img src="/Public/skin/images/user.jpg" />登录</a>
            </li>
            <li class="r">
                <a href="<?php echo U('register/index');?>">免费注册</a>
            </li>
        <?php else: ?>
            <li class="l">
                <a href="<?php echo U('user/index');?>">
                    <img src="/Public/skin/images/user.jpg" /><?php echo ($_SESSION['user']['nicename']); ?></a>
            </li>
            <li class="r">
                <a href="<?php echo U('user/loginout');?>">退出</a>
            </li><?php endif; ?>
    </ul>
    <div class="clear"></div>
</div>
    <!--nav 结束-->

    <!--注册 开始-->
    <div id="join_box">
        <form>
        <div class="join_infor regist">
            <h1>在&nbsp;探王猎头&nbsp;注册</h1>
            <p class="not">请填写下表来在探望猎头 注册。
                <br />我们将会保存您提供的资料以方便您在探王猎头中参赛交流。</p>
            <h2>账户信息</h2>
            <div class="biaodan">
                <div class="l">用户名
                    <span>*</span>
                </div>
                <div class="m">
                    <input type="text" name="reg_name" id="reg_name" />
                </div>
                <div class="clear"></div>
            </div>
            <div class="biaodan">
                <div class="l">密码
                    <span>*</span>
                </div>
                <div class="m">
                    <input type="password" placeholder="" name="reg_password" id="reg_password" />
                </div>
                <div class="r"></div>
                <div class="clear"></div>
            </div>
            <div class="biaodan">
                <div class="l">再次输入密码
                    <span>*</span>
                </div>
                <div class="m">
                    <input type="password" placeholder="" name="reg_password_cmf" id="reg_password_cmf" />
                </div>
                <div class="r"></div>
                <div class="clear"></div>
            </div>
            <h3>联系信息</h3>
            <div class="biaodan">
                    <div class="l">昵称
                        <span>*</span>
                    </div>
                    <div class="m">
                        <input type="text" name="reg_nicename" id="reg_nicename" />
                    </div>
                    <div class="clear"></div>
                </div>
            <div class="biaodan">
                <div class="l">手机
                    <span>*</span>
                </div>
                <div class="m">
                    <input type="text" name="reg_phone" id="reg_phone" />
                </div>
                <div class="clear"></div>
            </div>
            <div class="biaodan">
                <div class="l">微信号
                    <span>*</span>
                </div>
                <div class="m">
                    <input type="text" name="reg_weixin" id="reg_weixin" />
                </div>
                <div class="r"></div>
                <div class="clear"></div>
            </div>
            <div class="biaodan">
                <div class="l">邮箱
                    <span>*</span>
                </div>
                <div class="m">
                    <input type="text" name="reg_email" id="reg_email" />
                </div>
                <div class="r"></div>
                <div class="clear"></div>
            </div>
            <div class="biaodan">
                <div class="l"></div>
                <div class="zcbtn reg_submit">
                    <a href="javascript:void(0);">立即注册</a>
                </div>
                <div class="r"></div>
                <div class="clear"></div>
            </div>
        </div>
        </form>
    </div>
    <!--注册 结束-->
    
    <!--footer 开始-->
<div id="footer">
    <p>Copyright © 2010-2017 深圳市森鹏猎头有限公司版权所有 </p>
    <p>备案：粤ICP备17133948号</p>
</div>
<!--footer 结束-->
    
    <script type="text/javascript" src="/Public/javascripts/admin/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="/Public/javascripts/admin/jquery.form.js"></script>
    <script type="text/javascript" src="/Public/skin/layer/layer.js"></script>
    <script type="text/javascript" src="/Public/skin/functions.js"></script>
    <script type="text/javascript">
        $(function () {
            // 注册
            $(".reg_submit").click(function () {
                if ($("#reg_name").val() == '') {
                    layer.alert('请输入注册用户名！', { icon: 2,closeBtn: 0 });
                    $('#reg_name').focus();
                    return false;
                }

                if ($("#reg_password").val() == '') {
                    layer.alert('请输入注册用户名！', { icon: 2,closeBtn: 0 });
                    $('#reg_password').focus();
                    return false;
                }

                if ($("#reg_password").val() != $("#reg_password_cmf").val()) {
                    layer.alert('确认密码不一致，请重新输入！', { icon: 2,closeBtn: 0 });
                    $('#reg_password_cmf').focus();
                    return false;
                }

                if ($("#reg_nicename").val() == '') {
                    layer.alert('请输入注册昵称！', { icon: 2,closeBtn: 0 });
                    $('#reg_password').focus();
                    return false;
                }

                if ($("#reg_phone").val() == '') {
                    layer.alert('请输入注册手机！', { icon: 2,closeBtn: 0 });
                    $('#reg_phone').focus();
                    return false;
                }

                if (!isMobile($("#reg_phone").val())) {
                    layer.alert('请输入合法手机号码！',{icon: 2,closeBtn: 0});
                    $('#reg_phone').focus();
					return false;
				}

                if ($("#reg_weixin").val() == '') {
                    layer.alert('请输入注册微信！', { icon: 2,closeBtn: 0 });
                    $('#reg_weixin').focus();
                    return false;
                }

                if ($("#reg_email").val() == '') {
                    layer.alert('请输入注册邮箱！', { icon: 2,closeBtn: 0 });
                    $('#reg_email').focus();
                    return false;
                }

                if (!isEmail($("#reg_email").val())) {
                    layer.alert('请输入合法邮箱！',{icon: 2,closeBtn: 0});
                    $('#reg_email').focus();
					return false;
				}

                commonAjaxSubmit("<?php echo U('register/register_chk');?>");
            });
        });
    </script>
</body>

</html>